//
//  ZZTongAutoCompleteView.h
//  HPZZTong
//
//  Created by xy on 14-04-12.
//  Copyright (c) 2014年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HPConditionTextField;
@class ZZTongAutoCompleteViewV2;

@protocol ZZTongAutoCompleteViewDelegateV2<NSObject>

- (void)searchWordChanged:(ZZTongAutoCompleteViewV2*)view word:(NSString*)word;

@end

@interface ZZTongAutoCompleteViewV2 : UIView<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>{
    
}

@property(nonatomic, assign)id<ZZTongAutoCompleteViewDelegateV2> delegate;
@property (nonatomic, retain) HPConditionTextField *contentTextField;

//初始化数据
- (void)initViewStyle;

//数据重置函数
- (void)changeSearchArray:(NSArray *)data;

//设置输入人口键盘类型
- (void) setKeboardType:(UIKeyboardType) type;

//读取text属性
- (NSString*)readText;

- (void)setTableWidth:(int)Width;

- (void)setHint:(NSString*)hint;

- (void)setText:(NSString*)text;

@end
